public class Circle {//新
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getPerimeter() {
        return 2 * Math.PI * radius;
    }

    public double getArea() {
        return Math.PI * radius * radius;
    }

    public void showInfo() {
        System.out.printf("%.2f,%.2f", getPerimeter(), getArea());
    }
}
